<template>
  <MainLayout>
    <section class="forum-header">
      <div class="container">
        <div class="forum-header-title">实时与动画3D模型互动</div>
        <div class="forum-header-content">改进、简化和重新定义想法成为经验的方式。</div>
        <div class="find-btn">
          <div class="find-btn-txt" @click="jump('/business/contact')">让我们联系一下</div>
        </div>
      </div>
    </section>
    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/seek/interact/1.jpg" alt="" />
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">如何设置动画和交互</div>
        <div class="threeD-description">令人惊讶的简单过程，以获得有效和动态的结果。适用于所有专业和定制计划用户。</div>
      </div>
    </section>

    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-level-content">
            <div class="secure-level-title">创建一个3D设计</div>
            <div class="secure-level-tips">
              在设计模式下启动项目，您可以构建场景、创建或导入3D资产、调整材料并添加可以成为响应触发器的图形元素。
            </div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner more" @click="jump('/business/workspace')">
                了解更多关于工作室的信息
              </div>
            </div>
          </div>
          <div class="secure-iso">
            <img src="/images/seek/interact/2.jpg" alt="" />
          </div>
        </div>
      </div>
    </section>
    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-iso">
            <img src="/images/seek/interact/3.jpg" alt="" />
          </div>
          <div class="secure-level-content">
            <div class="secure-level-title">设置动画</div>
            <div class="secure-level-tips">
              在时间线上使用带有关键帧的新动画模式。使用运动来显示过程、模块化、顺序和方向。可以在交互或不交互的情况下触发。
            </div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner more" @click="jump('/seek/interact')">了解更多关于动画模式的信息</div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-level-content">
            <div class="secure-level-title">添加互动</div>
            <div class="secure-level-tips">
              在交互模式下，定义触发器、条件和操作。决定受众应该如何与设计互动来设置用户行为。交互可以显示信息、控制动画或使用浮动用户界面提供任何其他解决方案。
            </div>
            <div class="secure-level-btn">
              <div class="secure-level-btn-inner more" @click="jump('/seek/interact')">了解更多关于互动模式的信息</div>
            </div>
          </div>
          <div class="secure-iso">
            <img src="/images/seek/interact/4.jpg" alt="" />
          </div>
        </div>
      </div>
    </section>
    <section class="secure-content">
      <div class="container">
        <div class="secure-level">
          <div class="secure-iso">
            <img src="/images/seek/interact/5.jpg" alt="" />
          </div>
          <div class="secure-level-content">
            <div class="secure-level-title">分享经验</div>
            <div class="secure-level-tips">
              有目的的设计是共享的。使用一个链接与团队共享以获取反馈，或将整个场景嵌入到网站中。
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="team-section">
      <div class="container">
        <div class="team-title">使用3D产品配置器的更多可能性</div>
        <div class="team-desc">通常被产品设计师从概念阶段、获得批准、做演示，一直到电子商务展示。</div>
        <div class="team-btn" @click="jump('/seek/3DConfig')">了解更多关于配置器的信息</div>
        <div class="team-img">
          <img src="/images/seek/interact/6.jpg" alt="" />
        </div>
        <div class="team-list">
          <div class="team-item">
            <div class="team-item-title">浮动用户界面</div>
            <div class="team-item-description">
              这些图形元素可以构建在场景的任何地方，以打开更多信息。自定义它们并添加品牌、图像、注释或菜单样式。
            </div>
          </div>
          <div class="team-item">
            <div class="team-item-title">热点</div>
            <div class="team-item-description">
              在现场添加一个自定义热点，以提示用户单击并探索。热点可以是自定义PNG图标，也可以是使用Lottie文件进行动画。
            </div>
          </div>
          <div class="team-item">
            <div class="team-item-title">变体</div>
            <div class="team-item-description">
              将整个场景设置分组为一个可切换的变体。在对象、相机视图、场景或背景之间切换。
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="img-section">
      <div class="container">
        <img class="img-section-img cursor" @click="jump('/register')" src="/images/seek/interact/7.jpg" alt="" />
      </div>
    </section>
  </MainLayout>
</template>

<script setup>
  import { useRouter } from "vue-router";
  const router = useRouter();

  function jump(path) {
    router.push(path);
  }
</script>

<style lang="scss" scoped>
  @import "@/styles/variables.scss";

  .forum-header {
    padding: 48px 0 0;

    .container {
      .forum-header-title {
        font-size: 64px;
        font-weight: 500;
        color: #000;
        line-height: 1.6;
        text-align: center;
        letter-spacing: 3px;
      }
      .forum-header-content {
        margin: 20px auto;
        width: 50%;
        line-height: 1.6;
        text-align: center;
        font-size: 16px;
        color: #585858;
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      .container {
        .forum-header-title {
          font-size: 50px;
          letter-spacing: 2px;
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 32px 0;
      .container {
        .forum-header-title {
          font-size: 38px;
          letter-spacing: 1px;
        }
        .forum-header-content {
          margin-top: 20px;
          font-size: 14px;
          width: 80%;
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 24px 0;
      .container {
        .forum-header-title {
          font-size: 32px;
        }
      }
    }
  }

  .find-btn {
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;

    .find-btn-txt {
      display: inline-block;
      text-align: center;
      padding: 8px 20px;
      min-width: 60px;
      font-size: 16px;
      border-radius: 6px;
      color: #fff;
      background-color: #703ffa;
      border: 1px solid #703ffa;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      &:hover {
        background-color: transparent;
        color: #703ffa;
      }
      &.transparent {
        color: #703ffa;
        background-color: transparent;

        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }
    }

    @media (max-width: $breakpoint-mobile) {
      margin: 20px auto;
      .find-btn-txt {
        margin: 20px auto;
        padding: 4px 20px;
        min-width: 100px;
        font-size: 14px;
      }
    }
  }

  .img-section {
    padding: 40px 0 40px;
    .container {
      .img-section-img {
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        object-fit: cover;
        box-shadow: 2px 4px 8px 8px rgba(0, 0, 0, 0.05);
        .cursor {
          cursor: pointer;
        }
      }
    }
  }

  .threeD-section {
    padding: 40px 0 60px;
    color: #000;
    text-align: center;
    .container {
      .threeD-title {
        font-size: 48px;
        font-weight: 500;
        letter-spacing: 4px;
      }
      .threeD-tips {
        font-size: 22px;
        margin: 20px auto;
      }
      .threeD-description {
        width: 90%;
        margin: 15px auto;
        font-size: 16px;
        color: #5c5c5c;
      }
      .find-btn-txt {
        color: #703ffa;
        background-color: transparent;
        transition: all 0.2s ease-in-out;
        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-title {
          font-size: 36px;
          letter-spacing: 3px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 20px auto;
        }
        .threeD-description {
          font-size: 16px;
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-title {
          font-size: 32px;
          letter-spacing: 2px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 18px auto;
        }
        .threeD-description {
          width: 100%;
          font-size: 16px;
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-title {
          font-size: 28px;
        }
        .threeD-tips {
          font-size: 16px;
          margin: 14px auto;
        }
        .threeD-description {
          font-size: 14px;
        }
      }
    }
  }

  .secure-content {
    padding: 25px 0;
    .container {
      .secure-level {
        display: flex;
        justify-content: space-between;
        .secure-level-content {
          flex: 1;
          width: 50%;
          padding: 0 0 0 20px;
          display: flex;
          flex-direction: column;
          justify-content: center;
          .secure-level-tips {
            font-size: 16px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 20px;
          }
          .secure-level-tips-small {
            font-size: 14px;
            font-weight: 500;
            color: #929292;
          }
          .secure-level-title {
            font-size: 32px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 20px;
          }
          .secure-level-desc {
            margin: 0 0 20px;
            font-size: 16px;
            color: #585858;
            li {
              list-style: none;
              position: relative;
              padding-left: 15px;
              &::before {
                content: "•";
                position: absolute;
                left: 0;
                top: 50%;
                color: #585858;
                font-size: 16px;
                transform: translateY(-50%);
              }
            }
          }
          .secure-level-btn {
            .secure-level-btn-inner {
              display: inline-block;
              font-size: 16px;
              color: #fff;
              border: 1px solid #703ffa;
              background-color: #703ffa;
              border-radius: 10px;
              padding: 6px 20px;
              cursor: pointer;
              transition: all 0.3s ease;

              &.more {
                background-color: transparent;
                color: #703ffa;
                transition: all 0.2s ease-in-out;
                &:hover {
                  background-color: #703ffa;
                  color: #fff;
                }
              }
            }
          }
        }
        .secure-iso {
          flex: 1;
          width: 50%;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .secure-level {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          .secure-level-content {
            flex: 1 1 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .secure-level-title {
              font-size: 28px;
              font-weight: 500;
              text-align: center;
            }
            .secure-level-tips {
              font-size: 14px;
            }

            .secure-level-desc {
              font-size: 16px;
            }
            .secure-level-btn {
              margin: 0 auto;
              .secure-level-btn-inner {
                font-size: 16px;
                padding: 6px 20px;
              }
            }
          }
          .secure-iso {
            flex: 1 1 100%;
            width: 100%;
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .secure-level {
          .secure-level-content {
            .secure-level-title {
              font-size: 32px;
            }
            .secure-level-desc {
              font-size: 16px;
            }
            .secure-level-btn {
              .secure-level-btn-inner {
                font-size: 16px;
                padding: 6px 20px;
              }
            }
          }
        }
      }
    }
  }

  .threeD-content {
    padding: 25px 0 80px;
    .container {
      .threeD-list {
        display: flex;
        flex-wrap: wrap;
        gap: 30px 24px;
        .threeD-item {
          width: calc(33.33% - 16px);
          border-radius: 14px;

          .threeD-item-inner {
            flex: 1 1 100%;
            width: 100%;
            height: 100%;
            .threeD-item-img {
              width: 100%;
              border-radius: 14px;
              object-fit: cover;
              margin-bottom: 20px;
            }
            .threeD-item-tips {
              font-size: 16px;
              color: #929292;
            }
            .threeD-item-title {
              font-size: 36px;
              font-weight: 500;
              color: #000;
              margin-bottom: 20px;
            }
            .threeD-item-content {
              font-size: 16px;
              color: #585858;
              padding-bottom: 20px;
              ul {
                li {
                  list-style: none;
                  position: relative;
                  padding-left: 15px;
                  font-size: 16px;
                  margin-bottom: 10px;
                  &::before {
                    content: "•";
                    position: absolute;
                    left: 0;
                    top: 50%;
                    color: #585858;
                    font-size: 16px;
                    transform: translateY(-50%);
                  }
                }
              }
            }
            .threeD-item-btn {
              align-content: flex-end;
              display: flex;
              justify-content: center;
              align-items: center;
              padding: 10px 20px;
              font-size: 16px;
              width: fit-content;
              border: 1px solid #703ffa;
              color: #703ffa;
              border-radius: 10px;
              cursor: pointer;
              transition: all 0.2s ease-in-out;
              &:hover {
                background-color: #703ffa;
                color: #fff;
              }
            }
          }
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-list {
          gap: 20px 24px;
          .threeD-item {
            width: calc(50% - 16px);
            .threeD-item-inner {
              .threeD-item-title {
                font-size: 28px;
              }
              .threeD-item-content {
                padding-bottom: 10px;
              }
            }
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-list {
          gap: 20px;
          .threeD-item {
            width: 100%;
            padding: 8px;
            .threeD-item-inner {
              .threeD-item-title {
                font-size: 24px;
                margin-bottom: 10px;
              }
              .threeD-item-content {
                font-size: 14px;
                ul {
                  li {
                    font-size: 14px;
                  }
                }
              }
              .threeD-item-btn {
                padding: 6px 20px;
                font-size: 14px;
              }
            }
          }
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-list {
          gap: 10px;
          .threeD-item {
            .threeD-item-inner {
              .threeD-item-btn {
                padding: 6px 12px;
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }

  .team-section {
    padding: 40px 0 90px;
    .container {
      padding: 1px 16px;
      .team-title {
        font-size: 44px;
        font-weight: 500;
        text-align: center;
        color: #000;
        margin: 20px auto 20px;
        letter-spacing: 10px;
      }
      .team-desc {
        font-size: 16px;
        text-align: center;
        color: #585858;
        margin: 0 auto 20px;
      }
      .team-btn {
        margin: 20px auto 40px;
        width: fit-content;
        padding: 10px 20px;
        font-size: 16px;
        border: 1px solid #703ffa;
        color: #703ffa;
        border-radius: 10px;
        cursor: pointer;
        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }
      .team-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 40px;
        img {
          width: 100%;
        }
      }
      .team-list {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        .team-item {
          width: calc(33.33% - 20px);
          .team-item-title {
            font-size: 22px;
            font-weight: 500;
            color: #000;
            margin-bottom: 12px;
          }
          .team-item-description {
            font-size: 16px;
            color: #585858;
          }
        }
      }
    }

    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      padding: 30px 16px 80px;
      .container {
        .team-title {
          font-size: 36px;
          margin: 36px auto;
          letter-spacing: 8px;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 18px;
            }
            .team-item-description {
              font-size: 16px;
            }
          }
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 24px 16px 60px;
      .container {
        .team-title {
          font-size: 32px;
          margin: 32px auto;
          letter-spacing: 6px;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 18px;
            }
            .team-item-description {
              font-size: 14px;
            }
          }
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 20px 16px 50px;
      .container {
        .team-title {
          font-size: 28px;
          margin: 28px auto;
          letter-spacing: 4px;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 16px;
            }
            .team-item-description {
              font-size: 12px;
            }
          }
        }
      }
    }
  }
</style>
